package com.ruoyi.purchase.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 不合格记录对象 rejection_record
 * 
 * @author ruoyi
 * @date 2025-10-31
 */
public class RejectionRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long id;

    /** 检验计划单号 */
    @Excel(name = "检验计划单号")
    private String planId;

    /** 不合格原因 */
    @Excel(name = "不合格原因")
    private String rejectionReason;

    /** 不合格数量 */
    @Excel(name = "不合格数量")
    private Long rejectionQuantity;

    /** 处理方式 */
    @Excel(name = "处理方式")
    private String handlingMethod;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPlanId(String planId) 
    {
        this.planId = planId;
    }

    public String getPlanId() 
    {
        return planId;
    }

    public void setRejectionReason(String rejectionReason) 
    {
        this.rejectionReason = rejectionReason;
    }

    public String getRejectionReason() 
    {
        return rejectionReason;
    }

    public void setRejectionQuantity(Long rejectionQuantity) 
    {
        this.rejectionQuantity = rejectionQuantity;
    }

    public Long getRejectionQuantity() 
    {
        return rejectionQuantity;
    }

    public void setHandlingMethod(String handlingMethod) 
    {
        this.handlingMethod = handlingMethod;
    }

    public String getHandlingMethod() 
    {
        return handlingMethod;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("planId", getPlanId())
            .append("rejectionReason", getRejectionReason())
            .append("rejectionQuantity", getRejectionQuantity())
            .append("handlingMethod", getHandlingMethod())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
